package servidor;

import java.net.MalformedURLException;
import java.rmi.RemoteException;
import java.rmi.Naming;

public class Main {

	public static void main(String[] args) throws RemoteException, MalformedURLException {
		
		//disponibilizar o objecto Gestor
		Gestor g = new Gestor();
		
			//param 1: nome do servico a disponibilizar
			//param 2: referencia para Remote
			
		try {			
			Naming.rebind("//localhost/msg/", g);
			
		} catch (MalformedURLException e) {
			throw e;
		}
			
			
			
	
	}

}
